package com.dhcc.cdc.busi.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.dhcc.cdc.busi.entity.CdcEpisodeEntity;
import com.dhcc.core.framework.base.service.IBaseService;

import java.util.List;
import java.util.Map;

/**
 * 患者就诊信息表数据服务层接口
 * 
 * @ClassName: ICdcEpisodeService
 * @Description: TODO
 * @author jumper
 * @date 2021-03-15 10:20:08
 */
public interface ICdcEpisodeService  extends IBaseService<CdcEpisodeEntity> {
	
    List<CdcEpisodeEntity> page(Page<CdcEpisodeEntity> page,Map<String, Object> map);
    List<CdcEpisodeEntity> list(Map<String, Object> map);

    /**
     * 根据入院时间或出院时间查询就诊病人
     * @param dateType
     * @param startDate
     * @param endDate
     * @return
     */
    List<CdcEpisodeEntity> listByDate(String dateType, String startDate, String endDate, Map<String, Object> map);

    /**
     * 根据出院开始结束日期，获取完成编目的患者
     * @param startDate
     * @param endDate
     * @return
     */
    List<CdcEpisodeEntity> getFPCodingAdmsByDate(Map<String, Object> map);
    /**
     * 
     * @Title: handleXmlData   
     * @Description: TODO(这里用一句话描述这个方法的作用)   
     * @author: mazhaoyan 
     * @param: @param dataStr
     * @param: @return      
     * @return: String      
     * @throws   
     *
     */
    String handleXmlData(String dataStr);

    /**
     * 根据就诊id取患者姓名
     */
    String getNameByEpisodeId(Long episodeId);
}
